package com.cloud.internalcommon.constant;

import lombok.Getter;

public enum CommonStatusEnum {

    VERIFY_CODE_ERROR(10001,"短信验证码失败"),

    VERIFICATION_ONE_MIN_ERROR(10002,"您使用同一个错误验证码点击登录的次数过多,请1分钟后再试"),

    VERIFICATION_TEN_MIN_ERROR(10003,"您登录失败的次数过都，请10分钟后再试"),

    VERIFICATION_ONE_HOUR_ERROR(10004,"您今天登录失败的次数过都，请24小时后再试"),

    INTERNAL_SERVER_ERROR(-1,"Exception"),

    PHONE_NUMBER_EMPTY(10101,"手机号码为空"),

    PHONE_NUMBER_ERROR(10102,"手机号码格式不正确"),

    SUCCESS(10000,"成功"),

    FAIL(1,"fail");




    @Getter
    private final int code;
    @Getter
    private final String message;
    CommonStatusEnum(int code,String message){
        this.code = code;
        this.message = message;
    }
}
